package com.meilingcloud.activiti.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilingcloud.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 出入库单据 对象 act_wf_stock
 *
 * @author chenl
 * @date 2021-03-15
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("act_wf_stock")
public class ActWfStock implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 单据ID
     */
    @TableId(value = "stock_id", type = IdType.INPUT)
    private String stockId;

    /**
     * 单据类型
     */
    @Excel(name = "单据类型")
    private String stockType;

    /**
     * 单据标题
     */
    @Excel(name = "单据标题")
    private String stockTitle;

    /**
     * 单据描述
     */
    @Excel(name = "单据描述")
    private String stockDesc;

    /**
     * 流程实例ID
     */
    @Excel(name = "流程实例ID")
    private String instanceId;

    /**
     * 单据状态
     */
    @Excel(name = "单据状态")
    private String stockState;

    /**
     * 是否保留位置 0-不保留1-保留
     */
    @Excel(name = "是否保留位置")
    private String keepLocation;

    /**
     * 创建者名字
     */
    @Excel(name = "创建者名字")
    private String createName;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private String taskName;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
